function Base() {
    this.a = 1;
}

function Derived() {
    Base.call(this);
}

var num = 0;
for (var i = 0; i < 1000000; i++) {
    var obj = new Derived();
    num += obj.a;
}

print(num);
